package com.koron.css2.serviceManage.mapper;

import com.koron.css2.serviceManage.bean.ReceiptBean;
import org.apache.ibatis.annotations.Param;
import org.koron.ebs.mybatis.EnvSource;

import java.util.List;

@EnvSource("_default")
public interface ReceiptMapper {

	/**
	 * 新增
	 * @param bean
	 * @return
	 */
	public Integer saveReceipt(ReceiptBean bean);
	
	/**
	 * 更新
	 * @param bean
	 * @return
	 */
	public Integer updateReceipt(ReceiptBean bean);
	
	/**
	 * 查询
	 * @param bean
	 * @return
	 */
	public List<ReceiptBean> findReceipt();


	/**
	 * 按ID查询
	 * @param bean
	 * @return
	 */
	public ReceiptBean findReceiptById(ReceiptBean bean);
	
	/**
	 * 根据id查Receipt数据
	 * @param id
	 * @return
	 */
	public ReceiptBean findReceiptById(@Param("receiptId") String receiptId);
	
	/**
	 * 根据编号查Receipt数据
	 * @param code
	 * @return
	 */
	
	public ReceiptBean findReceiptByCode(String code);
	
	/**
	 * 根据编号模糊查Receipt数据
	 * @param code
	 * @return
	 */
	
	public List<ReceiptBean> findReceiptByCodeFuzz(String code);
	
}
